<div class="row"   style="margin-top: 1em;">

  <div class="col-sm-6">

    <div class="row">
      <div class="col-sm-12">
        <form class="form-horizontal" role="form">
          <div class="form-group">
            <label for="name" class="col-sm-2 control-label">名称</label>
            <div class="col-sm-10">
              <input type="text" class="form-control" id="name" ng-model="addList.name" placeholder="输入名称">
            </div>
          </div>

          <div class="form-group">
            <label for="description" class="col-sm-2 control-label">描述</label>
            <div class="col-sm-10">
              <textarea  ng-model="addList.description" class="form-control" id="description" rows="6" placeholder="输入列表的描述"></textarea>
            </div>
          </div>
        </form>
      </div>
    </div>

    <div class="row">
      <div class="col-sm-offset-2 col-sm-4">
        <button class="btn btn-primary btn-block"
                ng-disabled="!addList.name || !addList.description"
                ng-click="add()">
          确定
        </button>
      </div>
      <div class="col-sm-4">
        <button class="btn btn-warning btn-block" type="reset" ng-click="reset()">重置</button>
      </div>
    </div>

  </div>


  <div class="col-sm-6">

    <div class="row">
      <div class="col-sm-offset-1 col-sm-5">
        <button ng-file-select ng-model="files" multiple="true" class="btn btn-success btn-block">
          上传保存名单的Excel文件
        </button>
      </div>
    </div>

    <div class="row" style="margin-top: 1em">
      <div class="col-sm-offset-1 col-sm-5">
        <p class="text-info">
          <span ng-hide="addList.students.length">备注：　Excel文件的中应该具备两列数据，每列的第一行注明“姓名”和“学号”</span>
          <span ng-show="uploading">文件正在上传,　请稍候....</span>
          <span ng-show="addList.students.length">当前已通过Excel文件导入{{addList.students.length}}个学生的姓名和学号</span>
        </p>

      </div>
    </div>

    

  </div>

</div>